package com.abredatos.activities;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;

public class DetailedInformation extends Activity {

	public void createTable() {
		TableLayout tl = (TableLayout) findViewById(com.abredatos.R.id.DetailedInformationTable);
		 // Go through each item in the array
		TextView rowExample = (TextView) findViewById(com.abredatos.R.id.proyectoColumn);
        
		// Create a TableRow and give it an ID
		TableRow tr = new TableRow(this);
		tr.setId(100);
            
		// Create a TextView 
		TextView proyectoColumn = new TextView(this);
		proyectoColumn.setId(200);
		proyectoColumn.setText(""); 
		proyectoColumn.setHeight(rowExample.getHeight());
		proyectoColumn.setWidth(rowExample.getWidth());
		tr.addView(proyectoColumn);

		// Create a TextView 
		TextView priorityColumn = new TextView(this);
		priorityColumn.setId(300);
		priorityColumn.setText("");
		priorityColumn.setHeight(rowExample.getHeight());
		priorityColumn.setWidth(rowExample.getWidth());
		tr.addView(priorityColumn);
            
		// Create a TextView 
		TextView importeColumn = new TextView(this);
		importeColumn.setId(400);
		importeColumn.setText("+");
		importeColumn.setHeight(rowExample.getHeight());
		importeColumn.setWidth(rowExample.getWidth());
		
		
		tr.addView(importeColumn);
            
		// Add the TableRow to the TableLayout
		tl.addView(tr, new TableLayout.LayoutParams(
				LayoutParams.FILL_PARENT,
				LayoutParams.WRAP_CONTENT));
        
	}
}
